<?php
/**
 * Created by PhpStorm.
 * User: 小蛮哼哼哼
 * Email: 243194993@qq.com
 * Date: 2022/6/28
 * Time: 16:12
 * motto: 现在的努力是为了小时候吹过的牛逼！
 */

declare(strict_types=1);

namespace app\common\validate;

use think\Validate;

class MachineSeasoning extends Validate
{
    protected $rule = [
        "pid"=>"require",
        "title"=>"require",
        "value"=>"alphaNum",
        "data_value"=>"integer",
    ];
    protected $message = [
        "pid.require"=>"请选择菜单等级",
        "title.require"=>"请输入调料标题",
        "value.alphaNum"=>"变量名称只能为字符和数字",
        "value.data_value"=>"变量值只能为数字",
    ];
}